package com.liruo.learn.spring.mvc.controller.m1handlermapping;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author:liruo
 * @Date:2023-10-05-20:14:57
 * @Desc
 */
@Component
@RequestMapping(value = "/RequestMappingRequestMappingAnno")
public class RequestMappingRequestMappingAnno {
  @RequestMapping( method = RequestMethod.GET)
  @ResponseBody
  public String requestMappingRequestMappingAnnoGet() {
    return "requestMappingRequestMappingAnnoGet";
  }
  @RequestMapping( method = RequestMethod.POST)
  @ResponseBody
  public String requestMappingRequestMappingAnnoPost() {
    return "requestMappingRequestMappingAnnoPost";
  }
}
